<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!-- 用户访问权限设置界面 -->

<div id="Access-tabs" class="easyui-tabs" style="width:auto;height:100%;">  
    <div title="禁止访问ip设置" style="overflow:auto;border-right:1px solid #dad9d9">  
        <div id="toolbar-SystemAccessAdress" class="paddingTBL">
	        <a class="easyui-linkbutton" onclick="OpenSettingsDialog('添加',0)">添加</a>
	        <span class="paddingbtn"></span><a class="easyui-linkbutton" onclick="OpenSettingsDialog('修改',0)">修改</a>
	        <span class="paddingbtn"></span><a class="easyui-linkbutton" onclick="DeleteAccessAdress(0)">删除</a>
	    </div>
	    <table id="data-SystemAccessAdress"></table>  
    </div> 
      
    <div title="用户IP限制">   
        <div class="easyui-layout" data-options="fit:true" style="margin-top:5px;">   
			    <div data-options="region:'west',title:'用户信息',collapsible:false,width:'40%'" style="border-left:0">
			    	<div id="toolbar-AccessUsersUser" class="paddingTBL">
			    		<input id="userCode-Name" class="easyui-textbox" style="width: 150px;" data-options="prompt:'输入用户工号/姓名检索'"/>
				        <input id="isLimit">
				        <span class="paddingbtn"></span><a class="easyui-linkbutton" onclick="searchAccessUser()">搜索</a>
				    </div>
				    <!-- 查看所有要分配访问权限的用户 -->
				    <table id="data-AccessUsers"></table>
			    </div> 
			    
			    <div data-options="region:'east',title:'权限信息',collapsible:false,width:'59%'">
			    	<div id="toolbar-UserAccessAdress" class="paddingTBL">
				        <a class="easyui-linkbutton" onclick="OpenSettingsDialog('添加',1)">添加</a>
				        <span class="paddingbtn"></span><a class="easyui-linkbutton" onclick="OpenSettingsDialog('修改',1)">修改</a>
				        <span class="paddingbtn"></span><a class="easyui-linkbutton" onclick="DeleteAccessAdress(1)">删除</a>
				    </div>
				    <table id="data-UserAccessAdress"></table>
			    </div>   
	    </div>    
    </div>    
</div>

<!-- 给用户添加权限设置界面 -->
<div id="AccessPermsSetting-dialog" class="easyui-dialog" data-options="closed:true,width:400,height:300">
		<form id="AccessPermsSetting-form" method="post">
			<p class="paddingTL">
			    <label class="labelWid5">访问起始IP</label>
				<input id="FQXQSIP" name="FQXQSIP" class="easyui-textbox" data-options="width:160,height:24"/>
				<!-- <a class="easyui-linkbutton" onclick="getAllAdress()">..</a> -->
			</p>
			
			<p class="paddingTL">
			    <label class="labelWid5">访问结束IP</label>
				<input id="FQXJSIP" name="FQXJSIP" class="easyui-textbox" data-options="width:160,height:24"/>
				<!-- <a class="easyui-linkbutton" onclick="getAllAdress()">..</a> -->
			</p> 
			 
			<p class="paddingTL" >
				<label class="labelWid5">起始日期</label>
				<input name="FQSRQ" class="easyui-datebox" data-options="width:160,height:24"/>
			</p>
			<p class="paddingTL">
				<label class="labelWid5">结束日期</label>
				<input name="FJSRQ" class="easyui-datebox" data-options="width:160,height:24"/>
			</p>
			
			<p class="paddingTL">
				<label class="labelWid5"><span id="showAccess-Prohibit"></span></label>
				<input name="FXTNAME" id="system-name" data-options="width:160,height:24"/>
			</p>
		 
	    </form>
</div>

<!-- 显示局域网所有ip -->
<div id="getLanIp-dialog" class="easyui-dialog" data-options="closed:true,width:400,height:300">
	<table id="data-LanIp"></table>
</div>
 
<script type="text/javascript" src="<%=request.getContextPath()%>/js/systemMaintenance/AccessPermisionSettings.js"></script>
